/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package practice.classes;

/**
 *
 * @author VANDH
 */
public class Circle implements Shape {

    private final float PI = 3.1416f;
    private float r;

    public float getR() {
        return r;
    }

    public float getRy() {
        return r;
    }

    public Circle() {
    }

    public Circle(float r) {
        this.r = r;
    }

    public void setR(float r) {
        this.r = r;
    }

    public void setRy(float ry) {
        this.r = ry;
    }

    public float perimeter() {
        return (float) (2 * r * Math.PI);
    }

    public float area() {
        return r * r * PI;
    }

    @Override
    public void showName() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
